package com.ljc.www.rabbitmq;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * 消息消费者
 */
@Component
public class Receiver {

    @RabbitListener(queues = "rabbit-mq")
    public void  process(String msg){
        System.out.println("receiver:"+msg);
    }

}
